import createAxios from '@/src/utils/iceAxios.js'
/**
 * @name 登录 
 */
export function postExamLogin(data) {
    return createAxios({
        url: 'exam.login/login',
        method: 'POST',
        data: data
    })
}
/**
 * @name 修改密码 
 */
export function postEditPassword(data) {
    return createAxios({
        url: 'login/edit_password',
        method: 'POST',
        data: data
    })
}
/**
 * @name 获取首页的信息,标题,考试时长,卷面总分等
 */
export function postExamIndex(data) {
    return createAxios({
        url: 'exam.index/index',
        method: 'POST',
        data: data
    })
}
/**
 * @name 开始考试
 */
export function postStartExam(data) {
    return createAxios({
        url: 'exam.index/start_exam',
        method: 'POST',
        data: data
    })
}
/**
 * @name 考生登录
 */
export function postLogin(data) {
    return createAxios({
        url: 'exam.login/login',
        method: 'POST',
        data: data
    })
}
/**
 * @name 提交考试试卷(当检测作弊的接口时,多传一个status = 2)
 */
export function postHandExamPage(data) {
    return createAxios({
        url: 'exam.index/hand_exam_page',
        method: 'POST',
        data: data
    })
}
/**
 * @name 历史考试
 */
export function postHistoryExam(data) {
    return createAxios({
        url: 'exam.index/history_exam',
        method: 'POST',
        data: data
    })
}